import service from '..';

//获取首页轮播图的数据
/*
0: pc
1: android
2: iphone
3: ipad
*/
export function getBanner() {
  return service({
    method: 'GET',
    url:"/banner?type=2",
  })
}

// 获取发现好歌单
export function getMusicList() {
  return service({
    method: "GET",
    url: "/personalized?limit=10"
  })
}

export function getStyleMusicList() {
  return service({
    method: "GET",
    url: "/personalized/newsong?limit=10"
  })
}
export function leidaMusicList() {
  return service({
    method: "GET",
    url: "/personalized/privatecontent"
  })
}
export function getSearchMusic(data) {
  return service({
    method:"GET",
    url:`/search?keywords=${data}`
  })
}